package hash

import (
	"github.com/emmansun/gmsm/sm3"
)

func SM3(msg string) []byte {
	// 计算哈希
	hashBytes := sm3.Sum([]byte(msg))
	return hashBytes[:]
}
